const path = require('path') //commonjs 模块化 引入path 内置模块
// __dirname 完整的当前目录绝对路径
console.log(path.join(__dirname,'dist'))
module.exports = {
    mode: 'production',
    entry:'./src/index.js',
    output: {
        filename: 'bundle.js',
        path: path.join(__dirname,'dist')
    }
}